package com.anche.cywebnew.Service.auditManager.impl;

import com.anche.cywebnew.DAO.auditManager.NasLogMapper;
import com.anche.cywebnew.DAO.auditManager.StationLogMapper;
import com.anche.cywebnew.Pojo.auditManager.NasLog;
import com.anche.cywebnew.Pojo.auditManager.StationLog;
import com.anche.cywebnew.Service.auditManager.StationLogService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StationLogServiceImpl implements StationLogService {

    @Autowired
    private StationLogMapper stationLogMapper;

    @Override
    public int insertStation(StationLog stationLog) {
        return stationLogMapper.insertStation(stationLog);
    }

    @Override
    public Page<StationLog> getStationLogPager(Integer page, Integer limit, StationLog stationLog) {
        Page<StationLog> page1 = PageHelper.startPage(page, limit);
        stationLogMapper.selectStationLogList(stationLog);
        return page1;
    }
}
